package marking.liu.mapper;

import marking.liu.pojo.domain.InnerMarketDomain;
import marking.liu.pojo.entity.StockMarketIndexInfo;
import org.apache.ibatis.annotations.Param;
import org.joda.time.DateTime;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author marking liu
* @description 针对表【stock_market_index_info(国内大盘数据详情表)】的数据库操作Mapper
* @createDate 2024-07-18 23:42:52
* @Entity marking.liu.pojo.entity.StockMarketIndexInfo
*/
public interface StockMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockMarketIndexInfo record);

    int insertSelective(StockMarketIndexInfo record);

    StockMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockMarketIndexInfo record);

    int updateByPrimaryKey(StockMarketIndexInfo record);

    List<InnerMarketDomain> getMarketInfo(@Param("tradeTime") Date tradeTime, @Param("inner") List inner);

    /**
     * 查询国内A股大盘T日和T-1日成交量对比功能（成交量为沪市和深市成交量之和）
     * @return
     */
    List<Map> getStockTradeVol (@Param("openDate") Date openDate, @Param("findDate") Date findDate,@Param("markIds") List<String> markIds);

    /**
     * 批量插入大盘股票数据
     * @param info
     */
    void insertBatch(@Param("info") List<StockMarketIndexInfo> info);
}
